<?php

namespace app\adminapi\validate\room\department;


use app\common\validate\BaseValidate;


/**
 * 科室管理验证器
 * Class RoomDepartmentValidate
 * @package app\adminapi\validate\room
 */
class RoomDepartmentValidate extends BaseValidate
{

     /**
      * 设置校验规则
      * @var string[]
      */
    protected $rule = [
        'id' => 'require',
        // 'cid' => 'require',
         'code' => 'require',
        'name' => 'require',
        'status' => 'require',
    ];


    /**
     * 参数描述
     * @var string[]
     */
    protected $field = [
        'id' => 'id',
        // 'cid' => '院区',
         'code' => '科室代码',
        'name' => '房间名',
        'status' => '状态',
    ];


    /**
     * @notes 添加场景
     * @return RoomDepartmentValidate
     * @author likeadmin
     * @date 2024/02/26 16:32
     */
    public function sceneAdd()
    {
        return $this->only(['name','status']);
    }


    /**
     * @notes 编辑场景
     * @return RoomDepartmentValidate
     * @author likeadmin
     * @date 2024/02/26 16:32
     */
    public function sceneEdit()
    {
        return $this->only(['id','name','name','status']);
    }


    /**
     * @notes 删除场景
     * @return RoomDepartmentValidate
     * @author likeadmin
     * @date 2024/02/26 16:32
     */
    public function sceneDelete()
    {
        return $this->only(['id']);
    }


    /**
     * @notes 详情场景
     * @return RoomDepartmentValidate
     * @author likeadmin
     * @date 2024/02/26 16:32
     */
    public function sceneDetail()
    {
        return $this->only(['id']);
    }

}